package com.bjesc_b2c.app.appraiset.mvp.presenter.impl;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.bean.WaitTrackBean;
import com.bjesc_b2c.app.appraiset.mvp.model.AwaitClueModel;
import com.bjesc_b2c.app.appraiset.mvp.model.impl.AwaitClueModelImpl;
import com.bjesc_b2c.app.appraiset.mvp.presenter.AwaitCluePresenter;
import com.bjesc_b2c.app.appraiset.mvp.view.AwaitCuleView;

/**
 * Created by yidong on 2017/8/8.
 */

public class AwaitCluePresenterImpl implements AwaitCluePresenter,AwaitClueModelImpl.CallBack{
    private AwaitCuleView clueView;
    private AwaitClueModel clueModel;
    public AwaitCluePresenterImpl(AwaitCuleView culeView) {
        this.clueView = culeView;
        clueModel = new AwaitClueModelImpl(this);
    }

    @Override
    public void getClueList(Context context, int page, int type, String keyword,int status) {
        clueModel.getClueList(context,page,type,keyword,status);
    }

    @Override
    public void getF_ClueList(Context context, int page, int type, String keyword,int status) {
        clueModel.getF_ClueList(context,page,type,keyword,status);
    }

    @Override
    public void getIntentClueList(Context context, int page, int type, String keyword,int status) {
        clueModel.getIntentClueList(context,page,type,keyword, status);
    }

    @Override
    public void getIntentF_ClueList(Context context, int page, int type, String keyword) {
        clueModel.getIntentF_ClueList(context,page,type,keyword);
    }

    @Override
    public void callback(WaitTrackBean bean) {
        clueView.getCuleList(bean);
    }

    @Override
    public void loadStart() {
        clueView.loadStart();
    }

    @Override
    public void loadCompleted() {
        clueView.loadCompleted();

    }

    @Override
    public void loadFailure() {
        clueView.loadFailure();
    }
}
